﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FigureDraw
{
    public class FlowChartFactory : DiagramFactory
    {
        public override CommonShape CreateStartShape(StorageDevice sd, Infor infor)
        {
            return new StartSymbolFlowChart(sd, infor);
        }

        public override CommonShape CreateInputShape(StorageDevice sd, Infor infor)
        {
            return new InputSymbolFlowChart(sd, infor);
        }

        public override CommonShape CreateProcessShape(StorageDevice sd, Infor infor)
        {
            return new ProcessSymbolFlowChart(sd, infor);
        }

        public override CommonShape CreateOutputShape(StorageDevice sd, Infor infor)
        {
            return new OutputSymbolFlowChart(sd, infor);
        }

        public override CommonShape CreateConditionShape(StorageDevice sd, Infor infor)
        {
            return new ConditionSymbolFlowChart(sd, infor);
        }

        public override CommonShape CreateMoveShape(StorageDevice sd, Infor infor)
        {
            return new MoveSymbolFlowChart(sd, infor);
        }

        public override CommonShape CreateEndShape(StorageDevice sd, Infor infor)
        {
            return new EndSymbolFlowChart(sd, infor);
        }
    }
}
